package exception;

public class CustomException extends RuntimeException {
    private String msg;
    private int code;

    public CustomException() {
        super();
    }

    public CustomException(int code, String message) {
        super(message);
        this.code = code;
        this.msg = message;
    }

    public CustomException(String message) {
        super(message);
        this.msg = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return msg;
    }
}
